/**
* @file errno.h
* Global error codes definitions
*
* Copyrights 2011 Michal Saman, m.saman@designplus.cz.
* This source code is release under the Apache License 2.0.
* http://www.apache.org/licenses/LICENSE-2.0
*/

#ifndef __ERRNO_H
#define __ERNNO_H

/*
 * values in range [-1, -512] are kernel error codes.
 * values in range [-513, 1024] are user error codes.
 */

#define		EOK					0			/* no error */
#define		ENOENT				-1			/* No such entry */
#define		ENOMEM				-2			/* Not enough memory */
#define		ELIMIT				-3			/* Limit exceeded */
#define		EREFUSED			-4			/* Connection refused */
#define		EFORWARD			-5		 	/* Forward error */
#define		EPERM				-6			/* Permission denied */
#define		EEXISTS				-7			/* Entry alredy exits */
#define		EBADMEM				-8			/* Bad memory pointer */
#define		ENOTSUP				-9			/* Not supported */
#define		EADDRNOTAVAIL		-10			/* Address not avaiable */
#define		ETIMEOUT			-11			/* Timeout expired */
#define		EINVAL				-12			/* Invalid value */
#define		EBUSY				-13			/* Resource is busy */
#define		EOVERFLOW			-14			/* The result does not fit its size */
#define		EINTR				-15			/* Operation was interrupted */
#define		EIO					-16			/* Input / Output operation error */

#endif
